package qj.ac.support;

import java.util.LinkedList;

import qj.ui.DesktopUI4;
import qj.util.Clipboard;
import qj.util.Cols;

public class ToStringDeclaration {
	public static void main(String[] args) {
		String str = Clipboard.getText();
		
		LinkedList<String> lines = new LinkedList<String>();
		for (String line : str.split("\r?\n")) {
			lines.add("\"" + line.replaceAll("\"", "\\\\\"") + "\"");
		}
		
		String ret = Cols.join(lines, " +\n");
		
		System.out.println(ret);
		System.out.println("---- Copied to clipboard ----");
		Clipboard.copy(ret);
	}
}
